//= require jquery
//= require bootstrap
//= require_tree grame
//= require_self

if (typeof jQuery !== 'undefined') {
    (function ($) {
        $('#spinner').ajaxStart(function () {
            $(this).fadeIn();
        }).ajaxStop(function () {
            $(this).fadeOut();
        });
    })(jQuery);
}

// TODO change alert To bootstrap style alert(dialog)